<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('salesman/index')}">业务员列表</a></li>
			<li><a href="{:url('salesman/add')}">添加业务员</a></li>
		</ul>
        <form class="well form-inline margin-top-20" method="get" action="{:url('salesman/index')}">
            姓名:
            <input type="text" class="form-control" name="name" style="width: 220px;" value="{:input('request.name/s','')}">
            手机号:
            <input type="text" class="form-control" name="mobile" style="width: 220px;" value="{:input('request.mobile/s','')}">
            <input type="submit" class="btn btn-primary" value="搜索" />
            <a class="btn btn-danger" href="{:url('salesman/index')}">清空</a>
        </form>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th width="50">ID</th>
					<th>姓名</th>
					<th>手机号</th>
					<th>余额</th>
					<th width="240">{:lang('ACTIONS')}</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="list" item="vo">
				<tr>
					<td>{$vo.id}</td>
					<td>{$vo.name}</td>
					<td>{$vo.mobile}</td>
					<td>{$vo.coin}</td>
					<td>
						<a class="btn btn-xs btn-primary" href='{:url("salesman/edit",array("id"=>$vo["id"]))}'>{:lang('EDIT')}</a>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>